// 引入工具栏组件
import PageTools from '@/components/PageTools'
import UploadExcel from '@/components/UploadExcel'
import UploadImg from '@/components/UploadImg'
import ImageHolder from '@/components/ImageHolder'
import lang from '@/components/lang'
import ScreenFull from '@/components/ScreenFull'
// Vue.component(PageTools.name, PageTools)

// 插件的作用1: 批量全局注册组件
// Vue.use 传入一个对象
// 对象必须提供一个 install 函数
// 该函数会在Vue.use 时自动执行
export default {
  install(Vue) {
    // console.log(a === Vue)
    Vue.component(PageTools.name, PageTools)
    Vue.component(UploadExcel.name, UploadExcel)
    Vue.component(UploadImg.name, UploadImg)
    Vue.component(ImageHolder.name, ImageHolder)
    Vue.component(lang.name, lang)
    Vue.component(ScreenFull.name, ScreenFull)
  }
}

